<div id="solvay_content2010">
	<{include file="alumni/public/left_menu.tpl"}>
  
  <div id="content2010_right">
    <div class="ctn_contentright2010">
        <{include file="alumni/public/top_menu.tpl"}>
        <div class="content_tab">
            <div class="title_contenttab">
              <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
	                <td align="left">Personal info</td>
                </tr>
              </table>
           </div>
            <div class="ctn_texttab">
            	<form name="frmEditPersonal" id="frmEditPersonal" action="" method="post" onSubmit="return checkEditPersonal(this)" target="ifrm_upload">
              <table cellpadding="0" cellspacing="0" border="0" width="100%">
              	<tr>
                  <td colspan="2" class="text_13" style="color:#FF0000; text-align:center" id="id_alert_msg"></td>
                 </tr>
                <tr>
                  <td width="190" class="text_13">Full name <span style="color:#FF0000">*</span></td>
                    <td class="text_13"><input type="text" name="full_name" id="full_name" class="input2010_300" value="<{$arrInfoMember.full_name}>"  /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Gender</td>
                    <td class="text_13_bg">
                      <select name="gender" id="gender" class="select2010_300">
                        <option value="0"<{if $arrInfoMember.gender eq 0}> selected="selected"<{/if}>>Male</option>
                        <option value="1"<{if $arrInfoMember.gender eq 1}> selected="selected"<{/if}>>Female</option>
                      </select>
                    </td>
                </tr>
                <tr>
                  <td width="190" class="text_13">Date of birth</td>
                    <td class="text_13">
                      <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                              <td align="left">
                              <select name="day_dob" id="day_dob" class="select2010_95">
                                <option value=""> -- Day -- </option>
                                <{section name=foo start=1 loop=32 step=1}>
                                  <option<{if $arrInfoMember.day_dob eq $smarty.section.foo.index}> selected="selected"<{/if}> value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                                <{/section}>  
                              </select>
                        		</td>
                        <td width="5"></td>
                              <td align="left">
                        				<select name="month_dob" id="month_dob" class="select2010_95">
                                  <option value=""> -- Month -- </option>
                                  <{section name=foo start=1 loop=13 step=1}>
                                    <option<{if $arrInfoMember.month_dob eq $smarty.section.foo.index}> selected="selected"<{/if}> value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                                  <{/section}>  
                                </select>
                        			</td>
                         <td width="5"></td>
                        <td align="left">
                        		<select name="year_dob" id="year_dob" class="select2010_95">
                              <option value=""> -- Year -- </option>
                              <{section name=foo start=1940 loop=2010 step=1}>
                                <option<{if $arrInfoMember.year_dob eq $smarty.section.foo.index}> selected="selected"<{/if}> value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                              <{/section}>  
                            </select>
                       		</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Place of birth</td>
                    <td class="text_13_bg">
                    	<select name="pob" id="pob" class="select2010_300">
                      	<option value=""> -- City/Province -- </option> 
                        <{foreach name=nameLoaction key=keyLocation item=itemLocation from=$arrListLocation}>
                        	<option<{if $arrInfoMember.pob eq $itemLocation.id}> selected="selected"<{/if}> value="<{$itemLocation.id}>">&nbsp;&nbsp;&nbsp;<{$itemLocation.location_name}></option>
                        <{/foreach}>
                      </select>
                     </td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13">Intake</td>
                    <td class="text_13">
                    	<select name="intake_id" id="intake_id" class="select2010_300">
                        <option value=""> -- Choose -- </option>
                        <{foreach name=nameIntake key=keyIntake item=itemIntake from=$arrIntake}>
                          <option<{if $arrInfoMember.intake_id eq $itemIntake.id}> selected="selected"<{/if}> value="<{$itemIntake.id}>">&nbsp;&nbsp;&nbsp;<{$itemIntake.intake_name}></option>
                        <{/foreach}>
                      </select>
                    </td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Company (ToS)</td>
                    <td class="text_13_bg"><input type="text" name="company_tos" id="company_tos" class="input2010_300" value="<{$arrInfoMember.company_tos}>" /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13">Position (ToS)</td>
                    <td class="text_13"><input type="text" name="position_tos" id="" class="input2010_300" value="<{$arrInfoMember.position_tos}>"  /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                      <input type="submit" name="btnSubmit" id="btnSubmit" class="btn_login2010" value="Save" />
                    </td>
                </tr>
                 <tr>
                  <td colspan="2" height="20"></td>
                </tr>
              </table>
              </form>                
                <div class="note_bottom">* ToS : Time of study</div>
            </div>
            
        </div>
  		</div>
   	</div>
</div>
<script type="text/javascript">
	function checkEditPersonal(p_objForm)
	{
		if ( trim(p_objForm.full_name.value) == "" )
		{
			innerHTML("id_alert_msg","Please input your full name!");
			p_objForm.full_name.focus();
			return false;
		}
		
		var frm = xoad.html.exportForm('frmEditPersonal');
		callAJAX('xoad_handler', 'changepersonal', $H({form: frm}), checkEditPersonal_callBack);
		disableHandleForm(document.getElementById("frmEditPersonal"), true);
		return false;
	}
	var checkEditPersonal_callBack = function checkEditPersonal_callBack(results)
	{
		disableHandleForm(document.getElementById("frmEditPersonal"), false);
		if ( results == "SUCCESS" )
		{
			innerHTML("id_alert_msg", "Action successfully!");
		}
		else
		{
			innerHTML("id_alert_msg","Action unsuccessfully!");
		}
	}
</script>